package com.chen106106.sstest.common.session;

import javax.servlet.http.HttpServletRequestWrapper;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class HttpSessionRequestWrapper extends HttpServletRequestWrapper{
	public HttpSessionRequestWrapper(HttpServletRequest request, HttpSession session)
    {
        super(request);
        this.session = session;
    }

    public HttpSession getSession(boolean create)
    {
        return session;
    }

    public HttpSession getSession()
    {
        return getSession(true);
    }

    private HttpSession session;
}
